package com.buaa.student.service.impl;

import com.buaa.student.mapper.StudentMapper;
import com.buaa.student.pojo.Student;
import com.buaa.student.service.StudentQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class StudentQueryServiceImpl implements StudentQueryService {

    @Autowired
    private StudentMapper studentMapper;

    public ArrayList<Student> QueryByKey(String key){
        ArrayList<Student> students = studentMapper.queryStudentByKey(key);
        return students;
    }

}
